<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text" name="ya"/>
    <button>发送</button>
    <script>
        function changeColor(color){
            document.body.style.backgroundColor=color
        }
        document.querySelector('button').addEventListener('click',()=>{
            let name = document.querySelector('input').value
            window.ReactNativeWebView.postMessage(name)
        })
    </script>
</body>
</html>